<div class="row">

  <div class="col-xs-12">

        <script type="text/javascript">
        //删除确认
        function checkdel()
        {
            if(confirm("确实要删除吗？"))
            {
                return (true);
            }
            else
            {
                return (false);
            }
        }
        </script>

        <!-- 项目列表 -->
        <?php
            foreach($projects as $project)
            {
                echo '<ul class="list-group">';
                echo '<li class="list-group-item">';
                echo '项目名称：' . $project['proname'];
                echo '</li>';
                echo '<li class="list-group-item">';
                echo '<div class="btn-group btn-group-sm" style="margin-top:5px;">
                <a class="btn btn-default" href="' . site_url('project/addProgress/' . $project['id']) . '">写进度</a>
                <a class="btn btn-default" href="' . site_url('project/view/' . $project['id']) . '">查看</a>
                <a class="btn btn-default" href="' . site_url('project/edit/' . $project['id']) . '">编辑</a>
                <a class="btn btn-default" href="' . site_url('project/delete/' . $project['id']) . '" onclick="return checkdel()">删除</a>
               </div>';
                echo '</li>';
                echo '</ul>';
            }

            // 显示分页
            echo $page_links;
        ?>
        
  </div>

</div>

  
